/**
 * Pxb Utility
 * Copyright (C) 2009 Panxiaobo.
 * $Id$
 */
package pxb.util.http.impl;

import java.io.IOException;
import java.util.Map;

import pxb.util.http.HttpConnector;

/**
 * @author Panxiaobo
 * 
 */
public abstract class AbstractConnector implements HttpConnector {

    /*
     * (non-Javadoc)
     * 
     * @see pxb.util.http.HttpConnector#get(java.lang.String, java.util.Map)
     */
    public HttpResponse get(String url, Map<String, String> headers) throws IOException {
        return get(url, headers, null);
    }

    /*
     * (non-Javadoc)
     * 
     * @see pxb.util.http.HttpConnector#get(java.lang.String)
     */
    public HttpResponse get(String url) throws IOException {
        return get(url, null);
    }
}
